﻿<Window x:Class="ZSens.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="395" Width="804" Closing="Window_Closing"
        xmlns:my="clr-namespace:ZSens.Converter"
        xmlns:Command="clr-namespace:ZSens.Command"
        ResizeMode="CanMinimize"
        >
    <Window.Resources>
        <my:MethodToValueConverter x:Key="methodConverter"></my:MethodToValueConverter>
        <my:BoolToValueConverter x:Key="boolToStringConverter"></my:BoolToValueConverter>

    </Window.Resources>

    <Grid Name="Container" Margin="0,2,0,-2">
        <Image Source="Images/wrap.png" Margin="244,42,0,0" Height="251" Width="490" HorizontalAlignment="Left" VerticalAlignment="Top">

        </Image>
        <Image Source="Images/Arrow.jpg" Margin="316,307,445,26">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="100.522"/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image Source="Images/Arrow_.jpg" Margin="652,306,109,27">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="-2.513"/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image Source="Images/Arrow_.jpg" RenderTransformOrigin="0.457,0.688" Margin="179,279,582,54">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="86.687"/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>

        <Image Source="Images/Arrow.jpg" Margin="215,52,546,281">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="-171.532"/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Rectangle Name="CellPhone" Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="216" Margin="325,57,0,0" Stroke="Black" VerticalAlignment="Top" Width="319" Visibility="Hidden">
        </Rectangle>
        <ListBox Name="player_container" HorizontalAlignment="Left" Height="304" VerticalAlignment="Top" Width="126" ItemsSource="{Binding Players}" DisplayMemberPath="playerName"  SelectedIndex="{Binding Current}" Command:Selected.Command="{Binding SelectPlayerCommand}" Margin="10,37,0,0"/>
        <ComboBox HorizontalAlignment="Left" Height="22" Margin="10,10,0,0" VerticalAlignment="Top" Width="126" ItemsSource="{Binding Layouts}" DisplayMemberPath="DisplayString" Command:Selected.Command="{Binding SelectLayoutsCommand}" SelectedIndex="{Binding CurrentLayer}"/>
        <Button Content="Apply" HorizontalAlignment="Left" Height="27" Margin="348,10,0,0" VerticalAlignment="Top" Width="82" Command="{Binding ApplyLayoutCommand}"/>
        <Button Content="Remove" HorizontalAlignment="Left" Height="27" Margin="10,314,0,0" VerticalAlignment="Top" Width="126" Command="{Binding RemovePlayerCommand}" />
        <Border Name="Y" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="216" Margin="162,57,0,0" VerticalAlignment="Top" Width="82" Visibility="Hidden">

        </Border>
        <Border Name="X" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="57" Margin="325,293,0,0" VerticalAlignment="Top" Width="319" Visibility="Hidden" RenderTransformOrigin="0.5,0.5">

        </Border>
        <Button Content="Save" HorizontalAlignment="Left" Height="27" Margin="435,10,0,0" VerticalAlignment="Top" Width="82" Command="{Binding SaveLayoutCommand}" />
        <Button Content="Load" HorizontalAlignment="Left" Margin="522,10,0,0" VerticalAlignment="Top" Width="82" Height="27" Command="{Binding LoadLayoutCommand}"/>
        <Button Content="Help" HorizontalAlignment="Right" Height="27" Margin="694,10,0,0" VerticalAlignment="Top" Width="82" Click="Button_Click_2"/>
        <Button Content="Remove" HorizontalAlignment="Left" Margin="609,10,0,0" VerticalAlignment="Top" Width="82" Height="27" Command="{Binding RemoveLayoutCommand}"/>
    </Grid>
</Window>
